<template>
	<view class="content">
		<view >
			<view v-for="(item,index) in dataList" class="item " @click="$to(`../product_detail/product_detail`)">
				<view style="margin-bottom: 10rpx;" class="f30">{{item.name}}</view>
				<view class="f-c-b">
					<view class="item-left">
						<image :src="item.url" mode="widthFix"></image>
					</view>
					<view class="item-right">
						<view class="title">
							{{item.title}}
						</view>
						<view class="price_browse f-c-b f30">
							<view class="price">
								<text class="f40">￥{{item.price.split('.')[0]}}.</text>
								<text>{{item.price.split('.')[1]}}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		
		<view class="btn cw f-c-c">
			<u-icon name='plus-circle'></u-icon>
			<text>商品加购</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[{
					name:"喜羊羊店铺",
					title:"甩开油田清爽一夏·【美国版】持 妆DW粉底液30ml 补水遮瑕持久...",
					price:'88.88',
					url:"../../static/index/img_sp.png"
				},{
					title:"甩开油田清爽一夏·【美国版】持 妆DW粉底液30ml 补水遮瑕持久...",
					price:'88.88',
					url:"../../static/index/img_sp.png"
				}],
			}
		},
		methods: {
			
		}
	}
</script>

<style>
.content{
	background-color: #F4F4F4;
	height: 100vh;
	padding-top: 10rpx;
}
.item{
		background-color: #FFFFFF;
		margin-bottom: 20rpx;
		padding: 20rpx;
	}
	.item-left image{
		width: 160rpx;
	}
	.item-right{
		margin: 0 25rpx;
	}
	.price_browse{
		margin-top: 20rpx;
	}
	.price{
		color: #FF2929;
	}
	.btn{
		background-color: #FF8710;
		margin: 600rpx 50rpx;
		line-height: 80rpx;
		border-radius: 40rpx;
	}
</style>
